package com.fhz.module_main.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import androidx.viewpager2.adapter.FragmentStateAdapter

/**
 * 时间:2023/4/26
 * @author Mr.Feng
 * 简述: index的适配器
 */
class IndexViewPageAdapter(var list: MutableList<Fragment>, fm: FragmentManager, h:Int) : FragmentPagerAdapter(fm,h) {

    override fun getCount(): Int = list.size

    override fun getItem(position: Int): Fragment = list[position]

}